package com.ruoyi.project.erp.saleservices.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.erp.saleservices.mapper.SaleservicesMapper;
import com.ruoyi.project.erp.saleservices.domain.Saleservices;
import com.ruoyi.project.erp.saleservices.service.ISaleservicesService;
import com.ruoyi.common.utils.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-09-08
 */
@Service
public class SaleservicesServiceImpl implements ISaleservicesService 
{
    @Autowired
    private SaleservicesMapper saleservicesMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】ID
     * @return 【请填写功能名称】
     */
    @Override
    public Saleservices selectSaleservicesById(Long id)
    {
        return saleservicesMapper.selectSaleservicesById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param saleservices 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<Saleservices> selectSaleservicesList(Saleservices saleservices)
    {
        return saleservicesMapper.selectSaleservicesList(saleservices);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param saleservices 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSaleservices(Saleservices saleservices)
    {
        return saleservicesMapper.insertSaleservices(saleservices);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param saleservices 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSaleservices(Saleservices saleservices)
    {
        return saleservicesMapper.updateSaleservices(saleservices);
    }

    @Override
    public int disReviewSaleservices(Saleservices saleservices) {
        return saleservicesMapper.disReviewSaleservices(saleservices);
    }

    /**
     * 删除【请填写功能名称】对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteSaleservicesByIds(String ids)
    {
        return saleservicesMapper.deleteSaleservicesByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】ID
     * @return 结果
     */
    @Override
    public int deleteSaleservicesById(Long id)
    {
        return saleservicesMapper.deleteSaleservicesById(id);
    }
}
